-- mistic_cave
-- created by panyl
-- 地牢格子：神秘山洞

return {
    restoreGrid = function(grid, info)
    -- 还原状态
        grid.mistake = info["mistake"] or 0;
    end,

    collectContext = function(grid)
        -- 收集
        return { ["mistake"] = grid.mistake or 0, };
    end,

    autoFight = function(grid)
        local pos = grid:getPos();
        local index = math.random(4);
        return DungeonActionM.go("mistic_cave", pos, index);
    end,
};
